[Unit]
Description=Kubernetes API Server
Documentation=https://github.com/kubernetes/kubernetes
Requires=etcd.service
 
[Service]
Type=notify
EnvironmentFile={{ KUBERNETES_CONFIG_PATH }}/kube-apiserver.conf
ExecStart={{ K8S_ALL_EXE_FILE_PATH }}/kube-apiserver $KUBE_APISERVER_OPTS
Restart=on-failure
RestartSec=5
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

